FEEDBACK_TYPE = {
  positive: "3",
  neutral: "2",
  negative: "1"
}

DEMAND_TYPE = {
  "未完成" => "0",
  "已完成" => "1"
}

ORDER_TYPE = {
  "新建" => "0",
  "意向" => "1",
  "开始但未完成" => "2",
  "已完成未评价" => "3",
  "已完成已评价" => "4",
  "待取消" => "5",
  "已取消" => "6"
}


MERCHANT_TYPE = {
  "店铺" => "3",
  "摊贩" => "2",
  "流动" => "1"
}

USER_TYPE = {
  "信息录入员" => "1",
  "后台管理员" => "2",
  "用户" => "3"
}

IMAGE_TYPE = {
  "用户头像" => "1",
  "商户图片" => "2",
  "其他图片" => "0",
  "服务图片" => "3"
}


# session过期时间
SESSION_EXPIRE_TIME = 24.hours.to_i
# 登录后不进行操作自动则登出的时间(暂时定为永不过期)
SIGN_IN_TOKEN_EXPIRE_TIME = 1.year.to_i
# 手机验证码过期时间
CAPTCHA_EXPIRE_TIME = 1.hours.to_i
# APP名字
APP_NAME = "一品找人"


# 错误状态
Error_code = {
  rabbitmq_error: 1,
  rabbitmq_connecting: 2,
  rabbitmq_not_connected: 3,
  ok: 0
}